package com.aaa.entity;

import javax.persistence.*;
import java.util.Objects;

@Entity
@Table(name = "inventoryinfo", schema = "trainingdb", catalog = "")
public class InventoryinfoEntity {
    private Integer inventoryOdd;
    private int number;
    private Integer articlenum;
    private Integer kucuncount;
    private Integer pandiancount;

    @Basic
    @Column(name = "Inventory_odd")
    public Integer getInventoryOdd() {
        return inventoryOdd;
    }

    public void setInventoryOdd(Integer inventoryOdd) {
        this.inventoryOdd = inventoryOdd;
    }

    @Id
    @Column(name = "number")
    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    @Basic
    @Column(name = "articlenum")
    public Integer getArticlenum() {
        return articlenum;
    }

    public void setArticlenum(Integer articlenum) {
        this.articlenum = articlenum;
    }

    @Basic
    @Column(name = "kucuncount")
    public Integer getKucuncount() {
        return kucuncount;
    }

    public void setKucuncount(Integer kucuncount) {
        this.kucuncount = kucuncount;
    }

    @Basic
    @Column(name = "pandiancount")
    public Integer getPandiancount() {
        return pandiancount;
    }

    public void setPandiancount(Integer pandiancount) {
        this.pandiancount = pandiancount;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        InventoryinfoEntity that = (InventoryinfoEntity) o;
        return number == that.number &&
                Objects.equals(inventoryOdd, that.inventoryOdd) &&
                Objects.equals(articlenum, that.articlenum) &&
                Objects.equals(kucuncount, that.kucuncount) &&
                Objects.equals(pandiancount, that.pandiancount);
    }

    @Override
    public int hashCode() {
        return Objects.hash(inventoryOdd, number, articlenum, kucuncount, pandiancount);
    }
}
